package fr.unice.client.services;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import fr.unice.client.PlaylistDTO;

/**
 * The async counterpart of <code>PlaylistService</code>.
 */
public interface PlaylistServiceAsync {
	public void addPlaylist(String name, AsyncCallback<Long> asyncCallback);

	public void getPlaylists(AsyncCallback<List<PlaylistDTO>> asyncCallback);

	public void removePlaylist(Long id, AsyncCallback<Void> asyncCallback);

	public void updatePlaylist(Long id, String newName,
			AsyncCallback<Void> asyncCallback);

	public void addAudioFileToPlaylist(Long playlistID, String audioFileID,
			AsyncCallback<Void> asyncCallback);
}
